package zsvn

import (
	"crypto/hmac"
	"crypto/md5"
	"fmt"
)

func encry(name, pass string) string {
	key := []byte(pass)
	mac := hmac.New(md5.New, key)
	mac.Write([]byte(name))

	text_en := fmt.Sprintf("%x", mac.Sum(nil))
	return text_en
}
